package com.core.framework.tools.xmloprations.noe;
import java.util.HashMap;

import com.core.framework.tools.xmloprations.XmlParserKit;
import com.core.framework.tools.xmloprations.register.XmlRegister;
import com.core.framework.tools.xmloprations.register.XmlRegisterHook;
import com.core.framework.tools.xmloprations.register.XmlRegisterHookUtil;

/**
 * 在解析Xml的之前和之后各自产生一个方法调用。
 * @version : 2011-11-30
 * @author 赵永春 (zyc@byshell.org)
 */
public class XmlContext extends HashMap<String, Object> implements XmlRegisterHook {
    private static final long serialVersionUID = 3561637770852274728L;
    public void before() {};
    public void after() {};
    public XmlParserKit createXmlParserKit(String namespace, XmlRegister manager) {
        XmlRunToos.addXmlContext(namespace, this);
        return XmlRegisterHookUtil.DefaultHook.createXmlParserKit(namespace, manager);
    };
}